﻿
using System;
using System.Collections.Generic;
using System.Text;

namespace Rison.BusinessFacade.Entity.NRBZ
{
    public sealed class SysAttachment
    {
        private long _fileid = 0;
        private long _parentid = 0;
        private string _filename = string.Empty;
        private string _filepath = string.Empty;
        private string _filesize = string.Empty;
        private string _extension = string.Empty;
        private string _contenttype = string.Empty;
        private int _type = 0;

        /// <summary>
        /// 附件表的主键字段。
        /// </summary>
        public long FileId
        {
            get { return _fileid; }
            set { _fileid = value; }
        }

        /// <summary>
        /// 保存附件的数据表中，附件所属的主对象的字段名称。
        /// </summary>
        public long ParentId
        {
            get { return _parentid; }
            set { _parentid = value; }
        }

        /// <summary>
        /// 附件的原文件名。如：文档.doc
        /// </summary>
        public string FileName
        {
            get { return _filename; }
            set { _filename = value; }
        }

        /// <summary>
        /// 附件上传后在服务器的存储路径。如：/File/Upload/123.doc
        /// </summary>
        public string FilePath
        {
            get { return _filepath; }
            set { _filepath = value; }
        }

        /// <summary>
        /// 附件的大小。如：100K
        /// </summary>
        public string FileSize
        {
            get { return _filesize; }
            set { _filesize = value; }
        }

        /// <summary>
        /// 附件的扩展名。如：.doc
        /// </summary>
        public string Extension
        {
            get { return _extension; }
            set { _extension = value; }
        }

        /// <summary>
        /// 附件的文件类型。
        /// </summary>
        public string ContentType
        {
            get { return _contenttype; }
            set { _contenttype = value; }
        }

        public int Type
        {
            get { return _type; }
            set { _type = value; }
        }
    }
}
